package yrl.socket;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Date;

public class RadiusServer {

	public static void main(String[] args) throws IOException {
		ServerSocket server = new ServerSocket(8888);
		System.out.println("服务器启动时间：" + new Date());
		while (true) {
			Socket client = server.accept();
			Thread thread = new Thread(new AreaRunnable(client));
			thread.start();
		}
	}

}
